package sivan.annotation;

import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import sivan.service.SchoolInterface;
import sivan.service.SchoolService;

/**
 * Created by sivan on 2019/3/24.
 */
@Configuration
@EnableTransactionManagement
@ComponentScan("sivan")
@EnableAspectJAutoProxy
@Import({SchoolService.class})
public class BaseConfig {

    @Bean
    public InternalResourceViewResolver resourceViewResolver() {
        InternalResourceViewResolver resolver = new InternalResourceViewResolver();
        resolver.setPrefix("/views/");
        resolver.setSuffix(".jsp");
        return resolver;
    }
}
